<?php
date_default_timezone_set('America/Chicago');

spl_autoload_register(function($className) {
	static $folders = array(
		'library/',
		'extensions/slipstream.lifecycle/library/'
	);
	foreach($folders as $folder) {
		$fileName = $folder . $className . '.php';
		if(file_exists($fileName)) {
			include $fileName;
			return true;
		}
	}
	return false;
});

use Slipstream\BaseKernel;

class TestClass {
	protected $depA;
	public function __construct(Array $depA) {
		$this->depA = $depA;
	}
}

class TestDependencyA {
}

$kernel = new BaseKernel();
$container = $kernel->getContainer();


$instance = $container->getInstance('TestClass');

var_dump($instance);
